package MAgentAssignment;

import MAgentAssignment.ontology.FlightOntology;
import jade.content.lang.Codec;
import jade.content.lang.sl.SLCodec;
import jade.content.onto.Ontology;
import jade.core.Agent;
import jade.core.behaviours.CyclicBehaviour;

/**
 * Created by IntelliJ IDEA.
 * User: prageeth
 * Date: 2/16/12
 * Time: 2:26 PM
 * To change this template use File | Settings | File Templates.
 */
public class ParkingAgent extends Agent
{
    private Codec codec = new SLCodec();
    private Ontology ontology = FlightOntology.getInstance();

    @Override protected void setup()
    {

        getContentManager().registerLanguage( codec );
        getContentManager().registerOntology( ontology );
        addBehaviour( new CyclicBehaviour()
        {
            @Override public void action()
            {
                // airport agent always ask parking agent for available slots.
                // if available parking agent informs about the number of counts of slots
                // accordingly airport agent decides how many flights can be landed more or need to wait for take off
                // Flight Agent has to get a parking slot through airport agent before landing
            }
        } );
    }
}
